package com.dcd.controller;

import com.dcd.pojo.Car_level;
import com.dcd.service.Car_levelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class Car_levelController {

    @Autowired
    private Car_levelService car_levelService;

    /**
     * 查询全部级别
     *
     * @return
     */
    @RequestMapping("/select_all_level")
    public List<Car_level> select_all_level() {
        return car_levelService.select_all_level();
    }
}
